--- a/gcc-3.4.6/gcc/collect2.c	2005-01-10 15:25:23.000000000 +0000
+++ b/gcc-3.4.6/gcc/collect2.c	2014-06-10 16:49:08.314622023 +0100
@@ -1534,7 +1534,7 @@
   if (redir)
     {
       /* Open response file.  */
-      redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
+      redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);
 
       /* Duplicate the stdout and stderr file handles
 	 so they can be restored later.  */
